﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MaoCaiJun.DataBase.Sys
{
    [AttributeUsage(AttributeTargets.All, Inherited=true)]
    public class DataBaseAttribute : Attribute
    {
        public DataBaseAttribute(EnumDataBase enumDataBase)
        {
            this.EnumDataBase = enumDataBase;
        }
        public EnumDataBase EnumDataBase { get; set; }
    }

    /// <summary>
    /// 数据库字段的用途。
    /// </summary>
    public enum EnumDataBase
    {
        /// <summary>
        /// 类
        /// </summary>
        Class,
        /// <summary>
        /// 枚举
        /// </summary>
        Enum
    }
}
